<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="mm_lodging1.css" type="text/css" />
    <title>Delete Event</title>

<style type="text/css">
	<!--
	body {
		background-color: #0099CC;
	}
	.style2 {font-family: Arial, Helvetica, sans-serif}
	.style3 {
		font-family: Verdana, Arial, Helvetica, sans-serif;
		color: #000000;
		font-weight: bold;
	}
	.style5 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
	-->
</style>

<?php
	$id= $_POST["event"];	
	
	include "Global.php";
	//Conexion a mysql y a la base de datos
	$connection = DBConnect();
	
	$query = "DELETE FROM events WHERE events.IDevents = $id;";
	$resultado = mysql_query($query) or die ('\n error en query ' . mysql_error());
	
	DBCLose($connection);
				
?>
</head>

<body>
    <h1 align="center" class="pageName style3">
    	<strong>Event Deleted</strong><img src="Imagenes/login2.png" width="32" height="28" />
    </h1>
  
    <form id="form1" name="form1" action="deleteEvent.php" target="mainFrame">
    <div align="center">
        <br />
        <input name="View" type="submit" value="Ok" class="subHeader" action="deleteEvent.php"/>
    </div>
    </form>

</body>
</html>
